<?php
/**
{
    "schoolLikeId": "INT //ID",
    "uid": "INT //用户@foreign::tbl_user; @noload; @search; ",
    "avatar": "VARCHAR //头像@image; ",
    "schoolId": "INT //机构@foreign::tbl_school; @search; ",
    "ip": "VARCHAR //ip@noload; @hide; ",
    "created": "TIMESTAMP //"
}
 */

class SchoolLike extends Base
{
    
	public $schoolLikeId= '';//ID
	public $uid= '';//用户@foreign::tbl_user;@noload;@search;
	public $avatar= NULL;//头像@image;
	public $schoolId= '';//机构@foreign::tbl_school;@search;
	public $ip= NULL;//ip@noload;@hide;
	public $created= 'CURRENT_TIMESTAMP';//

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_school_like';
    }
    
    public  function key(){
        return 'schoolLikeId';
    }


    
    public static  function hideField()
    {
        return array (  0 => 'ip',);
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'SchoolLike';
    }
    
    public  function field()
    {
        return array (  'schoolLikeId' =>   array (    0 => 'INT',    1 => 11,    2 => 'ID',  ),  'uid' =>   array (    0 => 'INT',    1 => 11,    2 => '用户@foreign::tbl_user;@noload;@search;',  ),  'avatar' =>   array (    0 => 'VARCHAR',    1 => 512,    2 => '头像@image;',  ),  'schoolId' =>   array (    0 => 'INT',    1 => 11,    2 => '机构@foreign::tbl_school;@search;',  ),  'ip' =>   array (    0 => 'VARCHAR',    1 => 15,    2 => 'ip@noload;@hide;',  ),  'created' =>   array (    0 => 'TIMESTAMP',    1 => 0,    2 => '',  ),);
    }


}